<?php
if (!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

class table_erling_qd_configs extends discuz_table
{
	public function __construct() {

		$this->_table ='er_sign_in_config';
		$this->_pk    = 'id';

		parent::__construct();
	}

    public function fetch_by_keys($keys) {
        $result = array();
        if (!empty($keys)) {
            $query = DB::query("SELECT * FROM %t WHERE `key` IN (%n)", array($this->_table, $keys));
            while ($row = DB::fetch($query)) {
                $result[$row['key']] = $row;
            }
        }
        return $result;
    }
}